package br.com.hpedroni.engine.teste;

import javax.microedition.lcdui.Graphics;

import br.com.hpedroni.engine.physics.Vector2D;

public class Circle extends PrimitiveObject {

	private Vector2D position;
	private Vector2D deslocamento;
	private double raio;

	public Circle(int raio, int x, int y) {
		super(x, y, (2 * raio), (2 * raio));
		this.raio = raio;
		position = new Vector2D(x, y);
		deslocamento = new Vector2D(0, 0);
	}

	public void changePosition(Vector2D otherVector) {
		this.position = position.soma(deslocamento.soma(otherVector));
		setX((int)position.getX());
		setY((int)position.getY());
	}

	public void draw(Graphics g) {
		g.setColor(0, 0, 0);
		g.drawArc((int) position.getX(), (int) position.getY(), getWidth(),
				getHeigth(), 0, 360);

	}

	public boolean colidesWith(PrimitiveObject otherObject) {

		return false;
	}

}
